package com.yinNuo.collectWool.mobileApi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 用户做任务详细表 所有数据都是从这里判断(UserDoTask)实体类
 *
 * @author makejava
 * @since 2021-12-12 11:00:40
 */
public class UserDoTask extends Model<UserDoTask> implements Serializable {
    private static final long serialVersionUID = 496309347172672378L;
    /**
     * 主键id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /**
     * 用户id（关联user_task的id）
     */
    private Integer userId;
    /**
     * 做羊毛的appid (关联wool_task的id)
     */
    private Integer woolTaskId;
    /**
     * 做app下的具体任务的id(关联wool_task_detail的id)
     */
    private Integer woolTaskDetailId;
    /**
     * 任务对应的token
     */
    private String token;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getWoolTaskId() {
        return woolTaskId;
    }

    public void setWoolTaskId(Integer woolTaskId) {
        this.woolTaskId = woolTaskId;
    }

    public Integer getWoolTaskDetailId() {
        return woolTaskDetailId;
    }

    public void setWoolTaskDetailId(Integer woolTaskDetailId) {
        this.woolTaskDetailId = woolTaskDetailId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserDoTask{" +
                "id=" + id +
                ", userId=" + userId +
                ", woolTaskId=" + woolTaskId +
                ", woolTaskDetailId=" + woolTaskDetailId +
                ", token='" + token + '\'' +
                '}';
    }
}

